/*
 * Evento
 * 
 * The class Evento represents an event in the system
 * 
 * Author: Carmine Colicino, Luigi Di Martino
 * Version: 1.0
 * 
 * 2014 - Copyright by Team 6 - University of Salerno
*/

package it.unisa.udocs.data;

import java.sql.Date;

public class Evento {

	private int id_evento;
	private String nomeEvt;
	private Date dataInizio;
	private Date dataFine;
	private String bando;
	private String url;

	
	/**
	 * Constructs a new Evento
	 * 
	 * @param id - the id of an event
	 * @param nomeEvt - the name of an event
	 * @param in - the starting date of an event
	 * @param fin - the ending date of an event
	 * @param bando - the announcement of an event
	 * @param url - the url of an event
	 */
	public Evento(int id , String nomeEvt, Date in,Date fin, String bando,String url){

		id_evento=id;
		this.nomeEvt=nomeEvt;
		dataInizio=in;
		dataFine=fin;
		this.bando=bando;
		this.url=url;

	}
	
	/**
	 * Returns the url of an event
	 * 
	 * @return the url of an event
	 *
	 */
	public String getUrl(){
		return url;
		
	}
	
	/**
	 * Sets the url of an event
	 * 
	 * @param url - the url of an event
	 * 
	 */
	public void setUrl(String url) {
		this.url=url;
	}

	/**
	 * Returns the id of an event
	 * 
	 * @return the id of an event
	 *
	 */
	public int getId_evento() {
		return id_evento;
	}

	/**
	 * Sets the id of an event
	 * 
	 * @param id_evento - the id of an event
	 * 
	 */
	public void setId_evento(int id_evento) {
		this.id_evento = id_evento;
	}

	/**
	 * Returns the name of an event
	 * 
	 * @return the name of an event
	 *
	 */
	public String getNomeEvt() {
		return nomeEvt;
	}

	/**
	 * Sets the name of an event
	 * 
	 * @param nomeEvt - the name of an event
	 * 
	 */
	public void setNomeEvt(String nomeEvt) {
		this.nomeEvt = nomeEvt;
	}

	/**
	 * Returns the starting date of an event
	 * 
	 * @return the starting date of an event
	 *
	 */
	public Date getDataInizio() {
		return dataInizio;
	}

	/**
	 * Sets the starting date of an event
	 * 
	 * @param dataInizio - the starting date of an event
	 * 
	 */
	public void setDataInizio(Date dataInizio) {
		this.dataInizio = dataInizio;
	}

	/**
	 * Returns the ending date of an event
	 * 
	 * @return the ending date of an event
	 *
	 */
	public Date getDataFine() {
		return dataFine;
	}

	/**
	 * Sets the ending date of an event
	 * 
	 * @param dataFine - the ending date of an event
	 * 
	 */
	public void setDataFine(Date dataFine) {
		this.dataFine = dataFine;
	}

	/**
	 * Returns the announcement of an event
	 * 
	 * @return the announcement of an event
	 *
	 */
	public String getBando() {
		return bando;
	}

	/**
	 * Sets the announcement of an event
	 * 
	 * @param bando - the announcement of an event
	 * 
	 */
	public void setBando(String bando) {
		this.bando = bando;
	}

}
